package com.voxel.sense.infomsg.data.bean;

import com.chad.library.adapter.base.entity.MultiItemEntity;

import cyy.example.com.facotry.constants.Constants;
import cyy.example.com.facotry.model.api.response.ReportEntity;

/**
 * @author ChenYiYao
 * @date 2018/5/14
 * des :
 */
public class TaskReportElementBean
        implements MultiItemEntity {
    ReportEntity.FormElementListBean bean; //表格行元素
    int type = Constants.NORMAL_TYPE;
    String param1; //标记是否显示备注
    boolean enable;//是否可编辑

    public TaskReportElementBean(ReportEntity.FormElementListBean bean, String param1) {
        this.bean = bean;
        this.param1 = param1;
    }

    public TaskReportElementBean(ReportEntity.FormElementListBean bean, String param1, boolean enable) {
        this.bean = bean;
        this.param1 = param1;
        this.enable = enable;
    }

    public ReportEntity.FormElementListBean getBean() {
        return bean;
    }

    public void setBean(ReportEntity.FormElementListBean bean) {
        this.bean = bean;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }


    @Override
    public int getItemType() {
        return type;
    }

    public String getParam1() {
        return param1;
    }

    public void setParam1(String param1) {
        this.param1 = param1;
    }

    public boolean isEnable() {
        return enable;
    }

    public void setEnable(boolean enable) {
        this.enable = enable;
    }
}
